import { Decimal } from "./decimal.js";
const jia = (a, b) => {
  return new Decimal(a).add(new Decimal(b)).toNumber();
};
const cheng = (a, b) => {
  return new Decimal(a).mul(new Decimal(b)).toNumber();
};
const chu = (a, b) => {
  return new Decimal(a).div(new Decimal(b));
};
const jian = (a, b) => {
  return new Decimal(a).sub(new Decimal(b)).toNumber();
};

export default {
  jia,
  cheng,
  chu,
  jian,
};
